﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="WeekHandShakeDisplay.aspx.cs"
    Inherits="Week_WeekHandShakeDisplay" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI" TagPrefix="asp" %>
    
<%@ Register Assembly="FreeTextBox" Namespace="FreeTextBoxControls" TagPrefix="FTB" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>周握手关系投影</title>
    <script src="../Js/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
    <script type="text/javascript" language="javascript">
        function userinfo(str)
            {
                window.open('../WebCommon/UserInfo.aspx?SID=' + str, '', 'width=700,height=580,top=150, left=300'); 
            }
    </script>

    <style type="text/css">
     
        /*标黑投影显示的表格线*/
        td
        {
	        border-width:1px;
	        border-color:Black;
        }
        th
        {
            border-width:1px;
	        border-color:Black;
        }
        table
        {
            border-color:Black;
        }
    </style>
    <link href="../App_Themes/css/main_css.css" rel="stylesheet" type="text/css" />
    <link href="../App_Themes/css/display.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server" EnableScriptGlobalization="True">
        </asp:ScriptManager>
        <table border="0" cellpadding="0" cellspacing="0" width="100%">
            <tr>
                <td class="firstbjcolor" colspan="8">
                    <span class="currentHere">当前位置:周计划管理-&gt;添加查看周握手关系</span></td>
            </tr>
            <tr>
                <td style="height: 30px; background-image: url(../images/secondRow.gif); background-repeat: repeat-x;">
                    年份:<asp:DropDownList ID="drpYear" runat="server" AutoPostBack="True" OnSelectedIndexChanged="drpYear_SelectedIndexChanged">
                    </asp:DropDownList>年周期:<asp:DropDownList ID="drpQuarterDate" runat="server" AutoPostBack="True"
                        OnSelectedIndexChanged="drpQuarterDate_SelectedIndexChanged">
                    </asp:DropDownList>月周期:<asp:DropDownList ID="drpMonthDate" runat="server" AutoPostBack="True"
                        OnSelectedIndexChanged="drpMonthDate_SelectedIndexChanged">
                    </asp:DropDownList>周周期:<asp:DropDownList ID="drpWeekDate" runat="server" AutoPostBack="True"
                        OnSelectedIndexChanged="drpWeekDate_SelectedIndexChanged">
                    </asp:DropDownList>
                    <asp:Button ID="btnDel" runat="server" Text="删除" CausesValidation="False" OnClick="btnDel_Click"
                        SkinID="buttonSkin" />
                    <asp:Button ID="btnModify" runat="server" OnClick="btnModify_Click" SkinID="buttonSkin"
                        Text="修改" CausesValidation="False" /></td>
            </tr>
            <tr>
                <td>
                    <asp:GridView ID="gdvHandShake" runat="server" AutoGenerateColumns="False" DataKeyNames="HandShakeId,HandShakeState"
                        OnRowDataBound="gdvHandShake_RowDataBound" BorderColor="Black" Width="100%">
                        <Columns>
                            <asp:TemplateField HeaderText="选择">
                                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="40px" />
                                <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="40px" />
                                <ItemTemplate>
                                    <asp:CheckBox ID="ckbSelect" runat="server" />
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:BoundField HeaderText="计划编号">
                                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="40px" Wrap="False" />
                                <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="40px" Wrap="False" />
                            </asp:BoundField>
                            <asp:BoundField DataField="Sponsor" HeaderText="发起人">
                                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="80px" Wrap="False" />
                                <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="80px" Wrap="False" />
                            </asp:BoundField>
                            <asp:BoundField DataField="Participant" HeaderText="参与人">
                                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="60px" Wrap="False" />
                                <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="60px" Wrap="False" />
                            </asp:BoundField>
                            <asp:BoundField DataField="CompleteTime" HeaderText="结束时间" DataFormatString="{0:yyyy-MM-dd}"
                                HtmlEncode="False">
                                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="90px" Wrap="False" />
                                <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="90px" Wrap="False" />
                            </asp:BoundField>
                            <asp:BoundField DataField="HandShakeContents" HeaderText="握手关系内容">
                                <ItemStyle HorizontalAlign="Left" VerticalAlign="Middle" Width="267px" Wrap="False" />
                                <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="267px" Wrap="False" />
                            </asp:BoundField>
                            <asp:BoundField DataField="IsConsensus" HeaderText="是否达成共识">
                                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="90px" Wrap="False" />
                                <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="90px" Wrap="False" />
                            </asp:BoundField>
                            <asp:TemplateField HeaderText="意见">
                                <ItemStyle HorizontalAlign="Left" VerticalAlign="Middle" Width="200px" Wrap="False" />
                                <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="200px" Wrap="False" />
                                <ItemTemplate>
                                    <asp:DropDownList ID="drpType" runat="server" Width=160px Enabled="False">
                                        <asp:ListItem Value="0">请选择</asp:ListItem>
                                        <asp:ListItem Value="4">完成</asp:ListItem>
                                        <asp:ListItem Value="5">顺利进行</asp:ListItem>
                                        <asp:ListItem Value="6">有障碍</asp:ListItem>
                                        <asp:ListItem Value="7">失控</asp:ListItem>
                                    </asp:DropDownList>
                                    <asp:Label ID="lblHandShake" runat="server" Visible="False"></asp:Label><br />
                                    <asp:TextBox ID="txtCheckNote" runat="server" Enabled="False" SkinID="textboxMultiLineSkin"
                                        TextMode="MultiLine" Width="160px"></asp:TextBox><br /><asp:Button ID="btnOK" runat="server"
                                            CausesValidation="false" Enabled="False" OnClick="btnOK_Click" SkinID="buttonSkin"
                                            Text="提交" /><asp:Button ID="btnAddMeetingContent" runat="server" CausesValidation="false" SkinID="buttonSkin"
                                    Text="会议记录" Width="73px" OnClick="btnAddMeetingContent_Click" />
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:BoundField DataField="HandShakeId" HeaderText="id" Visible="False">
                                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="30px" Wrap="False" />
                                <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="30px" Wrap="False" />
                            </asp:BoundField>
                            <asp:BoundField DataField="HandShakeState" HeaderText="HandShakeState" Visible="False" />
                        </Columns>
                        <HeaderStyle BackColor="#DFDEDC" />
                    </asp:GridView>
                </td>
            </tr>
            <tr>
                <td>
                    <table>
                        <tr>
                            <td style="text-align: right">
                                握手关系发起人 :&nbsp;
                            </td>
                            <td>
                                <input id="txtSponsor" readonly="readonly" style="width: 170px" type="text" runat="server" /><a
                                    href="#" onclick="javascript:userinfo(parentNode.firstChild.id );"><input id="Submit1"
                                        size="18" type="button" value="..." /></a></td>
                            <td>
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align: right">
                                握手关系参与人 :&nbsp;
                            </td>
                            <td>
                                <input id="txtParticipant" readonly="readonly" style="width: 170px" type="text" runat="server" /><a
                                    href="#" onclick="javascript:userinfo(parentNode.firstChild.id );"><input id="Submit2"
                                        type="button" value="..." /></a></td>
                            <td>
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align: right">
                                结束时间 :&nbsp;
                            </td>
                            <td>
                                <asp:TextBox ID="txtCompleteTime" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})" runat="server" Width="170px"></asp:TextBox> 
                            </td>
                            <td>
                                <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToValidate="txtCompleteTime"
                                    Display="Dynamic" ErrorMessage="时间类型不正确" Operator="DataTypeCheck" Type="Date"></asp:CompareValidator><asp:RequiredFieldValidator
                                        ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtCompleteTime"
                                        Display="Dynamic" ErrorMessage="结束时间不可为空"></asp:RequiredFieldValidator></td>
                        </tr>
                        <tr>
                            <td style="text-align: right">
                                是否达成共识 :&nbsp;
                            </td>
                            <td>
                                <asp:DropDownList ID="drpIsConsensus" runat="server"  Width="176px">
                                    <asp:ListItem Value="1">达成共识</asp:ListItem>
                                    <asp:ListItem Value="0">未达成共识</asp:ListItem>
                                </asp:DropDownList></td>
                            <td>
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align: right">
                                握手关系内容 :&nbsp;
                            </td>
                            <td>
                                <asp:TextBox ID="txtHandShakeContents" runat="server" SkinID="textboxSkin" TextMode="MultiLine"
                                    Width="849px"></asp:TextBox></td>
                            <td>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtHandShakeContents"
                                    Display="Dynamic" ErrorMessage="握手关系内容不可以为空"></asp:RequiredFieldValidator></td>
                        </tr>
                        <tr>
                        <td style="text-align: right">
                            会议记录 :
                        </td>
                        <td>
                            <FTB:FreeTextBox ID="txtMeetingContent" runat="server" Height="152px" Width="849px"
                                ButtonPath="../images/ftb/officeXP/">
                            </FTB:FreeTextBox>
                        </td>
                        <td>
                            &nbsp;
                        </td>
                    </tr>
                        <tr>
                            <td>
                            </td>
                            <td>
                                <asp:Button ID="btnAdd" runat="server" OnClick="btnAdd_Click" SkinID="buttonSkin"
                                    Text="提交" /></td>
                            <td>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </form>
</body>
</html>
